package com.tiger.auto_ops.sys.mapper;

import com.tiger.auto_ops.sys.dao.SysOrgDao;

import java.util.List;

public interface SysOrgMapper {
    // Insert into database.
    public int insert(SysOrgDao organization);

    // Delete from database, but it is soft delete.
    public int delete(SysOrgDao organization);

    // Update the record data based on the data.
    public int update(SysOrgDao organization);

    // Query all data whose name contains the query string.
    public List<SysOrgDao> query(String queryString);

    // Query the data based on ID.
    public SysOrgDao queryById(int id);

    // Query the data based on name.
    public SysOrgDao queryByName(String name);
}
